class XxService {
  private baseUrl = '<%= basePath %>';
<% interfaces.forEach(function(item){ %>
  /**
  * @summary <%- item.summary %>
  * @description <%- item.description %>
  * @fullUrl <%- basePath %><%- item.pathUrl %>
  */
  public <%= item.name %>(data: any): Promise<any> {
    const requestUrl = this.baseUrl + '<%= item.pathUrl %>';
    const res = doRequest({
      method: '<%= item.type %>',
      url: requestUrl,
      body: data,
    });
    return res;
  }
<% }); %>
}

function doRequest(param: any) {
  return Promise.resolve(param);
}

export { XxService };
